﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sqlFields.aspx.cs" Inherits="sqlFields" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>字段管理-- 字典</title>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/layer/layer.js"></script>
<link href="/css/css.css" rel="stylesheet" type="text/css" />  
    <%
        if (Request.QueryString["print"] == "1")
        {
    %>
    <style>
        .noOutput{display:none;}
        body, td {
            background-color: white;
            color: black;
        }
    </style>
    <%
        }
    %>
</head>
<body>
         <form id="form1" runat="server">
    <div>
   
<table cellspacing="0" cellpadding="2" class="tblList" style="width:600px;border:none;">
    <tr>
        <td colspan="4" style="border:none">
		<b><font color=red>数据词典</font></b> 
        <a href="?print=1" class="noOutput" target="_blank">打印</a>
        </td>
    </tr>
</table>   
      <asp:Repeater runat="server" ID="rptTblList" >
                <HeaderTemplate>
<table cellspacing="0" cellpadding="2" class="tblList" style="width:600px">
     <thead>
	 <tr> 
		<td class="tdListTop">序号 </td>
		<td class="tdListTop">表名</td>
		<td class="tdListTop">说明</td>
		<td class="tdListTop noOutput">操作</td>
	 </tr>   
     </thead>                
     <tbody>
        </HeaderTemplate>
        <ItemTemplate>
 	<tr> 
		<td  class="tdList"><%# Eval("i")%></td>
		<td class="tdList"><%# Eval("tblname")%></td>
		<td class="tdList"><%# Eval("tbltitle")%></td>
		<td class="tdList  noOutput">
            <a href="?#<%# Eval("tblname")%>">查看</a>
            <a href="sqlTableEdit.aspx?tblName=<%# Eval("tblname")%>" onclick="return openLayer(this.href);return false;">修改</a>

		</td>
		
	</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
</table>
        </FooterTemplate>
    </asp:Repeater>
<div class="noOutput" style="margin:10px 2px 10px 2px">
    设计文档：<br />
        <asp:TextBox ID="txtResult" TextMode="MultiLine" runat="server" Height="100px" Width="598px"></asp:TextBox>      
</div>
     
     
       <asp:Repeater runat="server" ID="rptTblAllList"   OnItemDataBound="rptTblAllList_ItemDataBound" OnItemCommand="rptTblAllList_ItemCommand">
                <HeaderTemplate>
        </HeaderTemplate>
        <ItemTemplate>
<a name="<%# Eval("tblname")%>"></a>
             <br />
<table cellspacing="0" cellpadding="2" class="tblList" style="width:600px;border:none;">
    <tr>
        <td colspan="6" style="border:none">
		<b><%# Eval("tbltitle")%>(<%# Eval("tblname")%>)</b> 
            <a href="?#top" class="noOutput">Top</a>
        </td>
    </tr>
</table>
       <asp:Repeater runat="server" ID="rptFieldList" >
                <HeaderTemplate>
<table cellspacing="0" cellpadding="2" class="tblList" style="width:600px">
     <thead>
	 <tr> 
		<td class="tdListTop">序号 </td>
		<td class="tdListTop">列名</td>
		<td class="tdListTop">说明</td>
		<td class="tdListTop">类型</td>
		<td class="tdListTop">长度</td>
		<td class="tdListTop">是否允许为空</td>
		<!-- <td class="tdListTop">表名</td> -->
		<td class="tdListTop noOutput">操作</td>
		
	 </tr>   
     </thead>                
     <tbody>
        </HeaderTemplate>
        <ItemTemplate>
 	<tr> 
    <td  class="tdList"><%# Eval("i")%></td>
		<td class="tdList"><%# Eval("colname")%></td>
		<td class="tdList"><%# Eval("memo")%></td>
		<td class="tdList"><%# Eval("typename")%></td>
		<td class="tdList"><%# Eval("fdlength")%></td>
		<td class="tdList"><%# Eval("isnull")%></td>
		<td class="tdList noOutput">
            <a href="sqlFieldEdit.aspx?tblName=<%# Eval("tblname")%>&colname=<%# Eval("colname")%>&memo=<%# Eval("memo")%>&"
                 onclick="return openLayer(this.href);return false;">修改备注</a>

		</td>
			
	</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
</table>
        </FooterTemplate>
    </asp:Repeater>
           

        </ItemTemplate>
        <FooterTemplate>

        </FooterTemplate>
    </asp:Repeater>

      

             
    
    
  <%--  
<table cellpadding="2" cellspacing="0" class="tblForm" style="width:500px">
	<form name="topic" method="post" action="?action=modifyok&id=<%# Eval("id")%>">
	<tr> 
		<td colspan="2" class="tdFormHead"> 修改 </td>
	</tr>
	<tr> 
		<td class="tdFormLeft">表名：</td>
		<td class="tdFormRight"> <%# Eval("Tblname")%><input name="Tblname" type="text" value="<%# Eval("Tblname")%>" size="50" class="clsInput" style="display:none"></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">列名：</td>
		<td class="tdFormRight"> <input name="Colname" type="text" value="<%# Eval("Colname")%>" size="50" class="clsInput"></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">说明：</td>
		<td class="tdFormRight"> <input name="Memo" type="text" value="<%# Eval("Memo")%>" size="50" class="clsInput"></td>
	</tr>
	<tr> 
		<td height="30" colspan="2" align="center" >
		<input class=submit type=submit value=OK_！发表 name=B1> 
		<input class=submit type=reset value=NO_！重写 name=B2></td>
	</tr>
	</form>
</table>--%>


    </div>
    </form>
</body>
</html>